package com.example.lab2.config;

import com.example.lab2.infra.feign.fallback.JobFeignFallback;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@EnableHystrix
@EnableFeignClients(basePackages = {"com.example.lab2.infra.feign"})
@Configuration
public class FeignConfiguration {

    @Bean
    public JobFeignFallback jobFeignFallback() {
        return new JobFeignFallback();
    }
}
